int LED_PIN = 13;
int SENSOR_PIN = 12;

void setup() {
  // put your setup code here, to run once:
  pinMode(LED_PIN,OUTPUT);
  pinMode(SENSOR_PIN,INPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
  if(digitalRead(SENSOR_PIN)==HIGH){
    digitalWrite(LED_PIN,HIGH);
  }else{
    digitalWrite(LED_PIN,LOW);
  }
}
